import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import Navigation from "./components/Navigation/index"
import store from "@/store/index.js"
import request from "@/Api/request.js"
Vue.config.productionTip = false
Vue.component("custom-navbar",Navigation)
App.mpType = 'app'
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import store from "@/store/index.js"
import request from "@/Api/request.js"
export function createApp() {
  const app = createSSRApp(App)
  app.use(store)	
  return {
    app
  }
}
// #endif